home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / ODF-Interest Archive / April 96 / Pattern accessors < prev    next >
Encoding:
Internet Message Format  |  1996-12-03  |  1.0 KB  |  [TEXT/ttxt]

  1. Subject:     Pattern accessors
  2. Sent:        4/16/96 2:50 PM
  3. Received:    4/16/96 3:20 PM
  4. From:        Martin Sandberg, msandber@Sigma4.com
  5. Reply-To:    ODF-Interest@CILabs.ORG
  6. To:          OpenDoc Development Framework Discussion List, ODF-Interest@CILabs.
  7.  
  8. Why does FW_CColor have a complete set of accessors:
  9.         void            SetRGB(unsigned short r, unsigned short g, unsigned
  10. short b);
  11.         void            GetRGB(unsigned short& r, unsigned short& g,
  12. unsigned short& b) const;
  13.  
  14. and so on and so forth while FW_CPattern lacks them?? The
  15. FW_CColorPatternRep DOES have some accessors, but they're _private_!!
  16. What's going on here?
  17.  
  18. I'm also wondering about the split of characteristics between FW_CInkRep
  19. and FW_CStyleRep. IE, why does the Style have a pattern in it and why does
  20. the Ink not have it and so on and so forth. In fact, since all objects have
  21. BOTH, why have two things to completely describe the drawing mode?
  22.  
  23. And one further puzzlement - how does one get from a Style to a color pattern?
  24. Thanx in advance.
  25.  
  26. Martin
  27.  
  28.